package com.chiasma.writogether.model;

import java.io.Serializable;
import java.util.Set;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Story implements Serializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long storyId;
	
	@Persistent
	private String storyTitle;
	
	@Persistent
	private String storyDescription;
	
//	@Persistent(mappedBy = "story")
//	private List<Entries> entries;

//	@Persistent
//	private Set<UserProfile> users;
	
	//story constructor
	public Story() {
		
	}
	
	public Long getStoryId() {
		return storyId;
	}

//	public void setStoryId(Long storyId) {
//		this.storyId = storyId;
//	}

	public String getStoryTitle() {
		return storyTitle;
	}

	public void setStoryTitle(String storyTitle) {
		this.storyTitle = storyTitle;
	}

	public String getStoryDescription() {
		return storyDescription;
	}

	public void setStoryDescription(String storyDescription) {
		this.storyDescription = storyDescription;
	}

//	public List<Entries> getEntries() {
//		return entries;
//	}
//
//	public void setEntries(List<Entries> entries) {
//		this.entries = entries;
//	}

//	public Set<UserProfile> getUsers() {
//		return users;
//	}
//
//	public void setUsers(Set<UserProfile> users) {
//		this.users = users;
//	}
//	
	
	
}
